package main

import "fmt"

/**
 * @Description
 * @Author huran
 * @Date
 * @Param
 * @return
 **/

func main() {
	strCh := make(chan string, 10)
	for i := 0; i < 5; i++ {
		strCh <- fmt.Sprintf("data:%d", i)
	}
	close(strCh)

	for v := range strCh {
		fmt.Println(v)
	}
}
